<?php
class App_Module_Admin_Component_Myblog_Ctrl_Http_Ajax extends App_Module_Admin_Component_Myblog_Ctrl_Http
{
	
    protected function PrimaryActionInit ($basicActionName)
    {
        $blog = $this->GetBlogFromQueryId();
        if (!$blog)
        {
			Mozg::Lib('messanger')->createMessage(Mozg_Lang::_('BLOG_NOT_FOUND'), MESSAGE_ERROR);
	        Mozg::Response('http')->SetStatus(Mozg_Response::StatusError);
        	return false;
        }
    }

    public function mediaaddPrAction()
    {
    	$blog = $this->GetBlogFromQueryId();
		$this->MediaForArticle($blog);
    }
    
    public function savethemePrAction()
    {
    	$blog = $this->GetBlogFromQueryId();
    	$this->SaveThemeArticles($blog);
    }
}